package create_pattern.factory.abstract_factory;

/**
 * @author fly
 * @data 2022-03-29
 */
public class Test {
    public static void main(String[] args) {
        //使用 Intel 组装电脑
        AssembleFactory factory = new IntelFactory();
        Cpu cpu = factory.createCpu();
        Screen screen = factory.createScreen();
        cpu.useCpu();
        screen.useScreen();
    }
}